package cn.edu.nciae.libindex;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @author suddev
 */
@SpringBootApplication
@EnableElasticsearchRepositories(basePackages = "cn.edu.nciae.libindex.repository")
//@EnableJpaRepositories(basePackages = "cn.edu.nciae.libindex.repository")
@Controller
public class LibindexApplication {

    public static void main(String[] args) {
        SpringApplication.run(LibindexApplication.class, args);
    }

    @ResponseBody
    @GetMapping("/")
    public String index() {
        return "Hello";
    }
}
